package com.example.demo.mapping;

import com.example.demo.domain.model.Book;
import com.example.demo.domain.model.User;
import com.example.demo.domain.query.*;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

@Mapper
public interface BookMapping {
    BookMapping INSTANCE = Mappers.getMapper(BookMapping.class);

    //plus添加类转换
    Book toCreate (BookCreateQuery bookCreateQuery);
    //plus更新参数转化
    Book toUpdate(BookUpdateQuery bookUpdateQuery);

}
